package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.RdcAligeniusOrdermsgUpdateResponse;

/**
 * TOP API: taobao.rdc.aligenius.ordermsg.update request
 * 
 * @author top auto create
 * @since 1.0, 2018.09.19
 */
public class RdcAligeniusOrdermsgUpdateRequest extends BaseTaobaoRequest<RdcAligeniusOrdermsgUpdateResponse> {
	
	

	/** 
	* 子订单（消息中传的子订单）
	 */
	private Long oid;

	/** 
	* 处理状态，1=成功，2=处理失败
	 */
	private Long status;

	/** 
	* 主订单（消息中传的主订单）
	 */
	private Long tid;

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Long getOid() {
		return this.oid;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public Long getStatus() {
		return this.status;
	}

	public void setTid(Long tid) {
		this.tid = tid;
	}

	public Long getTid() {
		return this.tid;
	}

	public String getApiMethodName() {
		return "taobao.rdc.aligenius.ordermsg.update";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("oid", this.oid);
		txtParams.put("status", this.status);
		txtParams.put("tid", this.tid);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<RdcAligeniusOrdermsgUpdateResponse> getResponseClass() {
		return RdcAligeniusOrdermsgUpdateResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(oid, "oid");
		RequestCheckUtils.checkNotEmpty(status, "status");
		RequestCheckUtils.checkNotEmpty(tid, "tid");
	}
	

}